@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app{
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus{
  outline: none;
 }

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// 全局样式
.red{
  color: #f00;
}

//main-container全局样式
.app-main{
  min-height: 100%
}

.app-container {
  padding: 20px;
  position: relative;
 // background-color: #EEEEEE;
}

.pagination-container {
  margin-top: 30px;
}

.filter-container {
  margin-bottom: 20px;
  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
  .el-form-item{
    margin-bottom: 0;
  }
}
.handle-container{
  margin-bottom: 10px;
}

// 两列布局
.tow-column{
  padding-left: 210px;
}
.tow-column .container-left{
  float: left;
  width: 180px;
  margin-left: -190px;
}
.tow-column .container-main{
}

// 两列表单
.tow-column-form{
  .el-form-item{
    padding-right: 30px;
    width: 50%;
    float: left;
  }
}
@media screen and (max-width: 1200px){
  .tow-column-form{
    width: 400px !important;
    .el-form-item{
      padding-right: 0;
      width: 100%;
      float: none;
    }
  }
}
.el-form .el-select,
.el-form .el-cascader{
  display: block;
}
.el-dialog__body{
  padding: 20px 20px 0;
}
.my-el-dialog{
  .el-dialog__body{
    padding: 20px;
  }
}
.my-form-tip-info{
  line-height: 20px;
}

// my-styles
.el-form-item__content,
.el-form-item__label,
.el-cascader,
.el-select .el-input .el-select__caret,
.el-input__icon{
  line-height: 32px;
}
.el-input__inner{
  height: 32px;
  line-height: 32px;
  padding: 0 10px;
}
.el-button{
  padding: 8px 15px;
}
.el-table{
  color: #686868;
}
.el-table td,
.el-table th{
  padding: 8px 0;
  border-color: #e0e5f2 !important;
}
.el-table th{
  background-color: #f4f6f9;
  color: #3d3d3d;
  font-weight: bold;
}
.el-table--border,
.el-table--group{
  border-color: #e0e5f2 !important;
}
.el-table--striped .el-table__body tr.el-table__row--striped.current-row td,
.el-table__body tr.current-row>td,
.el-table__body tr.hover-row.current-row>td,
.el-table__body tr.hover-row.el-table__row--striped.current-row>td,
.el-table__body tr.hover-row.el-table__row--striped>td,
.el-table__body tr.hover-row>td{
  background-color: #e8f6e3 !important;
}
.el-table__body .handle-td{
  i{
    margin: 0 5px;
    font-size: 18px;
    color: #3297ff;
    cursor: pointer;
  }
}
.el-dialog__header{
  padding: 8px 15px;
  background-color: #f2f4f5;
  .el-dialog__headerbtn{
    top: 12px;
    right: 15px;;
  }
  .el-dialog__title{
    font-size: 16px;
  }
}
.el-dialog__footer{
  border-top: 1px solid #ececec;
  padding: 15px;
}

// 重写el-tree
.el-tree-node__label{
  overflow: hidden;
  text-overflow: ellipsis;
}

// el-message-box
.el-message-box__wrapper{
  .el-message-box:not(.el-message-box--center) {
    .el-message-box__btns{
      .el-button--default{
        float: right;
      }
      .el-button--primary{
        color: #fff;
        background: #67c23a;
        border-color: #67c23a;
      }
      & button:nth-child(1){
        margin-left: 10px;
      }
    }
  }
}

// ueditor
.edui-default{
  z-index: 3000 !important;
  .edui-dialog-modalmask{
    z-index: 3002 !important;
  }
  .edui-dialog{
    z-index: 3004 !important;
  }
}